<template>
	<view>
		
	</view>
</template>

<script>
	
	export default {
		name: "Comments",
		data() {
			return {

			};
		},
		methods:{
			showReplyInput(i, id) {
				this.commentList[this.index].inputShow = 0
				this.index = i
				this.commentList[i].inputShow = 1
				this.to = name
				this.toId = id
			},
		}
	}
</script>

<style lang="scss" scoped>
	.all {
		position: relative
	}

	.niceButton4 {
		background-color: #7C191E;
		border: none;
		border-radius: 12px;
		color: white;
		height: 45px;
		// padding: 15px 32px;
		text-align: center;
		text-decoration: none;
		display: inline-block;
		font-size: 16px;
		margin: 4px 2px;
		cursor: pointer;
		transition-duration: 0.4s;
		-webkit-transition-duration: 0.4s;
	}

	.niceButton4:hover {
		box-shadow: 0 12px 16px 0 rgba(0, 0, 0, .24),
			0 17px 50px 0 rgba(0, 0, 0, .19);
	}


	.input_control {
		width: 360px;
		margin: 20px auto;
	}

	input[type="text"],
	#btn1,
	#btn2 {
		box-sizing: border-box;
		text-align: center;
		font-size: 1.4em;
		height: 2.7em;
		border-radius: 4px;
		border: 1px solid #c8cccf;
		color: #6a6f77;
		-web-kit-appearance: none;
		-moz-appearance: none;
		display: block;
		outline: 0;
		padding: 0 1em;
		text-decoration: none;
		width: 100%;
	}

	input[type="text"]:focus {
		border: 1px solid #ff7496;
	}

	.inputDW {

		// object-fit: cover;
		background-color: #fff;
		text-align: center;
		bottom: 0;
		right: 10px;
		position: fixed;
		z-index: 100;
		color: #762428;

	}

	//帖子
	.post {
		margin: 0 10px;
		margin-top: 30px;
		position: relative;
		background-color: #fff;
		margin: 10px 10px;

		.img {
			width: 40px;
			height: 40px;
			position: relative;
			top: 15%;
			left: 5%;
			border-radius: 50%;
		}

		.name {
			position: relative;
			left: 8%;
			top: -10%;
			font-size: 15px;
		}

		.time {
			position: relative;
			left: -5%;
			top: 10%;
			font-size: 10px;
			color: #BAB8BB;
		}

		.source {
			position: relative;
			left: 5%;
			top: 3%;
			height: 10px;
			width: 35%;
			margin-bottom: 10px;
			line-height: 5%;
			text-align: center;
			background-color: #BAB8BB;
		}

		.txt {
			position: relative;
			left: 5%;
			top: 10%;
			height: 200px;
			width: 90%;
			text-align: center;
			background-color: #fff;
			border-style: solid;
			margin-bottom: 20px;

			.title {
				position: relative;
				top: 5%;
				margin-left: 4%;
				text-align: left;
				font-size: 20px;
				margin-bottom: 10px;
			}

			.details {
				font-size: 15px;
				position: relative;
				top: 5%;
				// margin: 0 5%;
				width: 90%;
				height: 80%;
				display: inline-block;
				text-align: justify;
				text-align-last: justify;
				text-indent: 2em;

			}
		}
	}

	// 评论
	.comment {
		margin: 0 10px;
		// margin-top: 30px;
		position: relative;
		background-color: #fff;

		.img {
			width: 40px;
			height: 40px;
			position: relative;
			top: 15%;
			left: 5%;
			border-radius: 50%;
		}

		.name {
			position: relative;
			top: 10%;
			font-size: 15px;
		}

		.time {
			position: relative;
			left: -5%;
			top: 10%;
			font-size: 10px;
			color: #BAB8BB;
		}


		.title {
			position: relative;
			top: 5%;
			// margin-left: 4%;
			text-align: left;
			font-size: 15px;
			margin-bottom: 10px;
			color: black;
		}
	}

	.bottom-handle {
		border-top: 2rpx solid #BAB8BB;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		height: 85rpx;
		background-color: #fff;
		display: flex;
		align-items: center;

		.send-btn {
			width: 80rpx;
			text-align: center;
		}
	}


	//testplun

	.my-reply {
		padding: 10px;
		background-color: #fafbfc;
	}

	.my-reply .header-img {
		display: inline-block;
		vertical-align: top;
	}

	.my-reply .reply-info {
		display: inline-block;
		margin-left: 5px;
		width: 90%;
	}

	@media screen and (max-width: 1200px) {
		.my-reply .reply-info {
			width: 80%;
		}
	}

	.my-reply .reply-info .reply-input {
		min-height: 20px;
		line-height: 22px;
		padding: 10px 10px;
		color: #ccc;
		background-color: #fff;
		border-radius: 5px;
	}

	.my-reply .reply-info .reply-input:empty:before {
		content: attr(placeholder);
	}

	.my-reply .reply-info .reply-input:focus:before {
		content: none;
	}

	.my-reply .reply-info .reply-input:focus {
		padding: 8px 8px;
		border: 2px solid #00f;
		box-shadow: none;
		outline: none;
	}

	.my-reply .reply-btn-box {
		height: 25px;
		margin: 10px 0;
	}

	.my-reply .reply-btn-box .reply-btn {
		position: relative;
		float: right;
		margin-right: 15px;
	}

	.my-comment-reply {
		margin-left: 50px;
	}

	.my-comment-reply .reply-input {
		width: flex;
	}

	.author-title:not(:last-child) {
		border-bottom: 1px solid rgba(178, 186, 194, 0.3);
	}

	.author-title {
		padding: 10px;
	}

	.author-title .header-img {
		display: inline-block;
		vertical-align: top;
	}

	.author-title .author-info {
		display: inline-block;
		margin-left: 5px;
		width: 60%;
		height: 40px;
		line-height: 20px;
	}

	.author-title .author-info>span {
		display: block;
		cursor: pointer;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.author-title .author-info .author-name {
		color: #000;
		font-size: 18px;
		font-weight: bold;
	}

	.author-title .author-info .author-time {
		font-size: 14px;
	}

	.author-title .icon-btn {
		width: 30%;
		padding: 0 !important;
		float: right;
	}

	@media screen and (max-width: 1200px) {
		.author-title .icon-btn {
			width: 20%;
			padding: 7px;
		}
	}

	.author-title .icon-btn>span {
		cursor: pointer;
	}

	.author-title .icon-btn .iconfont {
		margin: 0 5px;
	}

	.author-title .talk-box {
		margin: 0 50px;
	}

	.author-title .talk-box>p {
		margin: 0;
	}

	.author-title .talk-box .reply {
		font-size: 16px;
		color: #000;
	}

	.author-title .reply-box {
		margin: 10px 0 0 50px;
		background-color: #efefef;
	}
</style>